package com.jiangnan.warehouse_management.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
import lombok.Data;

@Data
public class CategoryRequest {
    @NotBlank(message = "分类名称不能为空")
    private String categoryName;

    @NotBlank(message = "分类描述不能为空")
    private String description;

    @Positive(message = "父分类ID必须大于0")
    private Integer parentId;
}